

class Human:
	def __init__(self, name, sex, age, phone_bill, phone_brand, battery_capacity, screen_size, standby_time, points):
		self.name = name
		self.sex = sex
		self.age = age
		self.phone_bill = phone_bill
		self.phone_brand = phone_brand
		self.battery_capacity = battery_capacity
		self.screen_size = screen_size
		self.standby_time = standby_time
		self.points = points

	def send_message(self,content):
		print(f"{self.name}发送了消息: {content}")

	def call(self, num:str, time):
		if num == "" or num == None:
			print("电话号码为空")
			return
		if self.phone_bill < 1:
			print("话费不足")
			return
		print(f"拨通了......")

		delta_bill = 0.0
		delta_point = 0

		if time < 10:
			delta_bill = time * 1.0
			delta_point = time * 15
		elif time < 20:
			delta_bill = 10 + (time - 10) * 0.8
			delta_point = 150 + (time - 10) * 39
		else:
			delta_bill = 18 + (time - 20) * 0.65
			delta_point = 540  + (time - 20) * 48

		self.phone_bill -= delta_bill
		self.points += delta_point
		print(f"通话结束, 花费{delta_bill}元, 积分增加{delta_point}分")
